import {request,trequest} from '../../../util/promise';



// 获取已完成工单数量

export const getAlreadyOrder = async (data) => {

    return await request('smx/Completed_repair_WorkOrder', 'POST', data);

};



// 获取已完成工单数量,图表

export const getAlreadyChart = async (data) => {

    return await request('smx/Completed_repair_WorkOrder_month', 'POST', data);

};



// 获取已完成工单数量,列表

export const getAlreadyList = async (data) => {

    return await request('api/smx/Completed_repair_WorkOrders_list', 'POST', data);

};



// 获取平均响应时长

export const getAverageTime = async (data) => {

    return await request('smx/Mean_repond_time', 'POST', data);

};



// 获取平均响应时长图表

export const getAverageTimeChart = async (data) => {

    return await request('smx/Mean_repond_time_list', 'POST', data);

};



// 获取平均维修天数

export const getAverageDay = async (data) => {

    return await request('api/smx/Mean_repair_time', 'POST', data);

};



// 获取平均维修天数图表

export const getAverageDayChart = async (data) => {

    return await request('api/smx/Mean_repair_time_list', 'POST', data);

};





// 获取紧急备件响应时间

export const getResponseTime = async (data) => {

    return await request('smx/critial_urgent_part_response_time', 'POST', data);

};



// 获取平均维修天数图表

export const getResponseTimeChart = async (data) => {

    return await request('smx/critial_urgent_part_response_time_12_list', 'POST', data);

};



// 获取当年工时消耗情况

export const getThatYearConsume = async (data) => {

    return await request('smx/Labor_consumed_summary', 'POST', data);

};



// 获取当年备件消耗情况

export const getEquipConsume = async (data) => {

    return await request('smx/Comsumed_parts_summary', 'POST', data);

};



// 获取工程师信息

export const getState = async (data) => {

    return await request('api/smx/TechnicianStatus', 'POST', data);

};



// 获取停机时间SerialLotNumber

export const getDownTime = async (data) => {

    return await request('smx/Down_hours_Summary_list', 'POST', data);

};



// 获取停机时间摘要

export const getDownTimeC = async (data) => {

    return await request('smx/Down_hours_Summary', 'POST', data);

};



// 获取未结工作单

export const getUnfinished = async (data) => {

    return await request('smx/Open_Work_order', 'POST', data);

};



// 获取零件物流信息

export const getPartsLogistics = async (data) => {

    return await request('api/smx/Open_Work_order', 'POST', data);

};



// 获取系统软件版本信息

export const getVersionInfo = async (data) => {

    return await request('api/smx/Open_Work_order', 'POST', data);

};



// 日志预测警报

export const getLogWarning = async (data) => {

    return await request('log/alarmTop_info', 'POST', data);

};



// 错误率前十名

export const getErrorTen = async (data) => {

    return await request('log/Error_Rate_info', 'POST', data);

};



// 上光时间

export const getGlazingTime = async (data) => {

    return await request('api/log/Image_On_Treatment_On', 'POST', data);

};



// 获取预防性维修进度

export const getPreProgress = async (data) => {

    return await request('api/smx/Preventive_Maintenance_Progress', 'POST', data);

};



// 获取预防性维修进度总

export const getPreProgressList = async (data) => {

    return await request('smx/Preventive_Maintenance_Progress_list', 'POST', data);

};



// 获取每日错误率

export const getDailyError = async (data) => {

    return await request('log/Daily_Error_Rates', 'POST', data);

};



// 发送中断

export const getInterrupt = async (data) => {

    return await request('log/send_interrupt', 'POST', data);

};



// 获取MLC气压

export const getMLCPressure = async (data) => {

    return await request('log/Jaw_Pot_Voltage', 'POST', data);

};



// 获取水流

export const getWaterFlow = async (data) => {

    return await request('log/Water_Flow', 'POST', data);

};



// 获取最近四周数据/send_interrupt

export const getTxDoseRate = async (data) => {

    return await request('api/log/send_interrupt', 'POST', data);

};



// 获取最近四周数据/MVCT_Dose_Rate

export const getMVCTDoseRate = async (data) => {

    return await request('log/MVCT_Dose_Rate', 'POST', data);

};



// 获取最近四周数据/Temperature

export const getTemperature = async (data) => {

    return await request('log/Temperature', 'POST', data);

};



// 获取最近四周数据/最终剂量一率

export const getFinalDose = async (data) => {

    return await request('log/Final_Dose_1_Rate', 'POST', data);

};



// 获取最近四周数据/Final_Dose_2_Rate

export const getFinalDoseTwo = async (data) => {

    return await request('api/log/Final_Dose_2_Rate', 'POST', data);

};



// 获取最近四周数据/TX_Gun_I

export const getTxGunI = async (data) => {

    return await request('log/TX_Gun_I', 'POST', data);

};



// 获取最近四周数据/MVCT_Gun_I

export const getMVCTGunI = async (data) => {

    return await request('log/MVCT_Gun_I', 'POST', data);

};



// 获取最近四周数据/Tx_PAC

export const getTxPAC = async (data) => {

    return await request('log/Tx_PAC', 'POST', data);

};



// 获取最近四周数据/MVCT_PAC

export const getMVCTPAC = async (data) => {

    return await request('log/MVCT_PAC', 'POST', data);

};



// 获取最近四周数据/Tx_Inj_I

export const getTxInjI = async (data) => {

    return await request('log/Tx_Inj_I', 'POST', data);

};



// 获取最近四周数据/MVCT_Inj_I

export const getMVCTInjI = async (data) => {

    return await request('log/MVCT_Inj_I', 'POST', data);

};



// 获取最近四周数据/Tx_AFC

export const getTxAFC = async (data) => {

    return await request('log/Tx_AFC', 'POST', data);

};



// 获取最近四周数据/MVCT_AFC

export const getMVCTAFC = async (data) => {

    return await request('log/MVCT_AFC', 'POST', data);

};

// 新 预警日志top5
export const getNewLog = async(data)=>{
    return await trequest('api/AllInstalledProducts','GET',data)
}




